* gdk_drag_get_actions:
* @drag: a #GdkDrag
*
- * Determines the bitmask of actions proposed by the source if
- * gdk_drag_get_suggested_action() returns %GDK_ACTION_ASK.
+ * Determines the bitmask of possible actions proposed by the source.
*
* Returns: the #GdkDragAction flags
**/
return drag->actions;
}
-/**
- * gdk_drag_get_suggested_action:
- * @drag: a #GdkDrag
- *
- * Determines the suggested drag action of the GdkDrag object.
- *
- * Returns: a #GdkDragAction value
- **/
-GdkDragAction
-gdk_drag_get_suggested_action (GdkDrag *drag)
-{
- g_return_val_if_fail (GDK_IS_DRAG (drag), 0);
-
- return drag->suggested_action;
-}
-
/**
* gdk_drag_get_selected_action:
* @drag: a #GdkDrag
g_object_notify_by_pspec (G_OBJECT (drag), properties[PROP_ACTIONS]);
}
-void
-gdk_drag_set_suggested_action (GdkDrag *drag,
- GdkDragAction suggested_action)
-{
- drag->suggested_action = suggested_action;
-}
-
void
gdk_drag_set_selected_action (GdkDrag *drag,
GdkDragAction action)
GdkDragAction actions;
GdkDragAction selected_action;
- GdkDragAction suggested_action;
guint drop_done : 1; /* Whether gdk_drag_drop_done() was performed */
};
GdkCursor *cursor);
void gdk_drag_set_actions (GdkDrag *drag,
GdkDragAction actions);
-void gdk_drag_set_suggested_action (GdkDrag *drag,
- GdkDragAction suggested_action);
void gdk_drag_set_selected_action (GdkDrag *drag,
GdkDragAction action);
move_drag_surface (drag, x_root, y_root);
gdk_drag_set_actions (drag, possible_actions);
- gdk_drag_set_suggested_action (drag, suggested_action);
if (protocol == GDK_DRAG_PROTO_XDND && drag_x11->version == 0)
{
*/
if (gdk_content_formats_contain_mime_type (formats, "application/x-rootwindow-drop") ||
gdk_content_formats_contain_mime_type (formats, "application/x-rootwin-drop"))
- gdk_drag_set_selected_action (drag, gdk_drag_get_suggested_action (drag));
+ gdk_drag_set_selected_action (drag, suggested_action);
else
gdk_drag_set_selected_action (drag, 0);
guint32 evtime)
{
GdkX11Drag *x11_drag = GDK_X11_DRAG (drag);
- GdkDragAction action, possible_actions;
+ GdkDragAction suggested_action;
+ GdkDragAction possible_actions;
GdkDragProtocol protocol;
Window proxy;
gdk_drag_get_current_actions (mods, GDK_BUTTON_PRIMARY, x11_drag->actions,
- &action, &possible_actions);
+ &suggested_action, &possible_actions);
proxy = gdk_x11_drag_find_surface (drag,
- x11_drag->drag_surface,
- x_root, y_root, &protocol);
+ x11_drag->drag_surface,
+ x_root, y_root, &protocol);
gdk_x11_drag_drag_motion (drag, proxy, protocol, x_root, y_root,
- action, possible_actions, evtime);
+ suggested_action, possible_actions, evtime);
}
static gboolean